package com.catsic.pub.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import com.catsic.base.BaseEntity;
import com.catsic.pub.status.MessageStatus;

/**
 * ClassName: MESSAGE
 * Description: 消息实体类
 * date: 2014年2月27日 上午11:07:45
 * author: huyulei
 */
 
@Entity
@Table(name="S_MESSAGE")
public class Message extends BaseEntity implements Serializable{
	
	/**
	 * serialVersionUID:VersionUID
	 */
	private static final long serialVersionUID = 3978692597847952740L;
	
	/**
	 * moduleName:模块名称
	 */
	@Column(name = "MODULENAME")
	private String moduleName;
	
	/**
	 * title:标题
	 */
	@Column(name = "TITLE")
	private String title;
	
	/**
	 * content:内容
	 */
	@Column(name = "CONTENT")
	private String content;
	
	/**
	 * url:URL地址
	 */
	@Column(name = "URL")
	private String url;
	
	/**
	 * acceptObjId:接收对象ID
	 */
	@Column(name = "ACCEPTOBJID")
	private String acceptObjId;
	
	/**
	 * acceptObjIdName:接收对象名称
	 */
	@Column(name = "ACCEPTOBJNAME")
	private String acceptObjName;
	
	/**
	 * status:状态
	 */
	@Enumerated(EnumType.STRING)
	@Column(name="STATUS")
	private MessageStatus status = MessageStatus.未读;
	
	public String getModuleName() {
		return moduleName;
	}

	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	public String getAcceptObjId() {
		return acceptObjId;
	}

	public void setAcceptObjId(String acceptObjId) {
		this.acceptObjId = acceptObjId;
	}

	public String getAcceptObjName() {
		return acceptObjName;
	}

	public void setAcceptObjName(String acceptObjName) {
		this.acceptObjName = acceptObjName;
	}

	public MessageStatus getStatus() {
		return status;
	}

	public void setStatus(MessageStatus status) {
		this.status = status;
	}
}